import { requestType } from '~/config/enum.config';

const SERVICE = 'management-service';
const CONTROLLER = 'userController';

export default {
  /**
   * 增加用户
   */
  createUser: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'createUser',
    type: requestType.Post,
  },
  /**
   * 查询部门下的特定用户
   */
  getAllUsers: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getAllUsers',
    type: requestType.Get,
  },
  /**
   * 用户批量分配角色
   */
  batchAllotRole: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'batchAllotRole',
    type: requestType.Post,
  },
  /**
   * 修改用户
   */
  modifyUser: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'modifyUser',
    type: requestType.Post,
  },
  /**
   * 重置密码
   */
  modifyUserPassword: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'modifyUserPassword',
    type: requestType.Post,
  },
  /**
   * 批量设置催收员等级
   */
  batchUpdateUserLevel: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'batchUpdateUserLevel',
    type: requestType.Post,
  },
  /**
   * 批量开启关闭分案
   */
  batchCaseSwitch: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'batchCaseSwitch',
    type: requestType.Post,
  },
  /**
   * 根据查询所有用户不分页
   */
  getAllUsersList: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getAllUsersList',
    type: requestType.Get,
  },
  /**
   * 新增区域码
   */
  addRegionalConfig: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'addRegionalConfig',
    type: requestType.Post,
  },
  /**
   * 查询区域码列表
   */
  getAllAreaConfigInfo: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getAllAreaConfigInfo',
    type: requestType.Post,
  },
  /**
   * 查看区域码详情
   */
  getRegionalConfigById: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getRegionalConfigById',
    type: requestType.Get,
  },
  /**
   * 编辑区域码
   */
  updateRegionalConfig: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'updateRegionalConfig',
    type: requestType.Post,
  },
  /**
   * 短信模板
   */
  getAllSmsTemplateInfo: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getAllSmsTemplateInfo',
    type: requestType.Get,
  },
  /**
   * 配置短信模板
   */
  addSmsTemplateInfo: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'addSmsTemplateInfo',
    type: requestType.Post,
  },
  /**
   * 配置短信模板 - 编辑
   */
  updateSmsTemplateInfo: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'updateSmsTemplateInfo',
    type: requestType.Post,
  },
  /**
   * 外包机构管理
   */
  getAllOutOrgInfo: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getAllOutOrgInfo',
    type: requestType.Get,
  },
  /**
   * 外包机构管理
   */
  addOrgInfo: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'addOrgInfo',
    type: requestType.Post,
  },
  /**
   * 外包机构管理 - 查看
   */
  getOrgInfoById: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getOrgInfoById',
    type: requestType.Get,
  },
  /**
   * 外包机构管理 - 编辑
   */
  updateOrgInfo: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'updateOrgInfo',
    type: requestType.Post,
  },
  /**
   * 代码参数配置 - 新增
   */
  addCodeConfigInfo: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'addCodeConfigInfo',
    type: requestType.Post,
  },
  /**
   * 代码参数配置 - 获取列表
   */
  getAllChildrenById: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getAllChildrenById',
    type: requestType.Get,
  },
  /**
   * 代码参数配置 - 删除
   */
  deleteCodeConfigInfo: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'deleteCodeConfigInfo',
    type: requestType.Get,
  },
  /**
   * 代码参数配置 - 修改
   */
  updateCodeConfigInfo: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'updateCodeConfigInfo',
    type: requestType.Post,
  },
  /**
   * 代码参数配置 - 关联修饰码
   */
  getChildrenById: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getChildrenById',
    type: requestType.Get,
  },
  /**
   * 选择模板
   */
  getAllSmsTemplate: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getAllSmsTemplate',
    type: requestType.Get,
  },
  /**
   * 模板预览
   */
  getAllSmsTemplateById: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getAllSmsTemplateById',
    type: requestType.Get,
  },

  // 执行页获取逾期阶段对应的短信模板
  getSmsTemplate: {
    service: 'domain-service',
    controller: 'smsTemplate',
    action: 'getAllSmsTemplate',
    type: requestType.Get,
  },

  // 执行页获取短信模板内容
  getSmsTemplateByNote: {
    service: 'domain-service',
    controller: 'smsTemplate',
    action: 'getAllSmsTemplateById',
    type: requestType.Post,
  },


  // 获取单个参数代码的子集
  selectAllByCode: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'selectAllByCode',
    type: requestType.Get,
  },

  // 查询有效的参数代码的子集
  findAlreadyEffectCodeByType: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'findAlreadyEffectCodeByType',
    type: requestType.Get,
  },

  // 根据代码参数id查询关联的有效修饰码列表
  findRelationModifierCodeById: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'findRelationModifierCodeById',
    type: requestType.Get,
  },

  // 系统设置 - 短信模板配置  意见导入模板
  oneClickSmsTemplateSync: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'oneClickSmsTemplateSync',
    type: requestType.Post,
  }
}
